﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
<link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />    
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery.ui.datepicker-zh-CN.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-timepicker-addon.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-timepicker-zh-CN.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}Validform_v5.3.2_min.js"></script>
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style></head>
    <div class="main-div">
          <div class="alert alert-info">当前位置<b class="tip"></b>客户信息管理<b class="tip"></b>编辑联系人</div>
       &nbsp;<a class="btn" id="Button3" href="{:U('Client/lst',array('id'=>$id,'p'=>$p))}">返回客户信息列表</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('Client/edit',array('id'=>$id,'p'=>$p))}">编辑客户信息</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('ClientContact/lst',array('id'=>$id,'p'=>$p))}">联系人列表</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('ClientAccount/lst',array('id'=>$id,'p'=>$p))}">交往记录</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('Order/lst',array('id'=>$id,'p'=>$p))}">订单记录</a>
        <br/>
        <br/>
    <form name="main_form" id ="demoform" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="{$data['id']}" />
    	<input type="hidden" name="id" value="{$p}" />
        <table class="tb" id="top" cellspacing="1" cellpadding="3" width="100%">
            
        <input type="hidden" name="client_id" value="{$data['client_id']}"/>
            <tr>
                <td class="alert alert-info">姓名：</td>
                <td>
                    <input  type="text" name="name" value="{$data['name']}" datatype="*1-30" errormsg="姓名最30个字符！"/><span style="color:red">*</span>
                </td>
                <td class="alert alert-info">性别：</td>
                <td>
                    <if condition="$data['sex']=='1'">
                        <input type="radio" name="sex" value="1" checked/>男 
                	<input type="radio" name="sex" value="0" />女 
                    <else/>
                    <input type="radio" name="sex" value="1" />男 
                	<input type="radio" name="sex" value="0" checked/>女 
                    </if>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">职位：</td>
                <td>
                    <input  type="text" name="zw" value="{$data['job']}" datatype="*1-30" errormsg="职位最多30个字符！"/><span style="color:red">*</span>
                </td>
                <td class="alert alert-info">办公室电话：</td>
                <td>
                    <input  type="text" name="dh" value="{$data['job_phone']}" datatype="*1-30" errormsg="办公室电话最多30个字符！"/><span style="color:red">*</span>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">手机：</td>
                <td>
                    <input  type="text" name="phone" value="{$data['phone']}" datatype="*0-30" errormsg="手机最多30个字符！"/>
                </td>
                <td class="alert alert-info">备注：</td>
                <td>
                    <input  type="text" name="bz" value="{$data['comments']}" datatype="*0-40" errormsg="备注最多40个字符！"/>
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="btn" value=" 确定 " />
                    <input type="reset" class="btn" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>
<script>
$( "input[name='atime']" ).datetimepicker();
$("#demoform").Validform();
</script>